<%@ page import="wargame.entity.*" %>
<%@ page import="wargame.dao.*" %>
<%@ page import="module.*" %>
<%@ page import="java.util.*" %>

<%@ page session="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>  
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<% String url = request.getRequestURL().toString();%>

<%!
    public String realURL(String location, String url) {
        String folder = "/wargaming/";
        int testIndex = url.indexOf(folder);
        String urlTrim = url.substring(0, testIndex + folder.length());
        urlTrim += location;
        return urlTrim;
    }
%>

<%!    // Used to display currency in a constant manner
    public String formatCurrency(int amount) {
        return "$" + amount;
    }
%>
